3.2601 \(\int \frac {x^{-1+n}}{a+b x^n} \, dx\)

Optimal. Leaf size=15 \[ \frac {\log \left (a+b x^n\right )}{b n} \]

[Out]

ln(a+b*x^n)/b/n

________________________________________________________________________________________

Rubi [A]  time = 0.00, antiderivative size = 15, normalized size of antiderivative = 1.00, number of steps used = 1, number of rules used = 1, integrand size = 15, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.067, Rules used = {260} \[ \frac {\log \left (a+b x^n\right )}{b n} \]

Antiderivative was successfully verified.

[In]

Int[x^(-1 + n)/(a + b*x^n),x]

[Out]

Log[a + b*x^n]/(b*n)

Rule 260

Int[(x_)^(m_.)/((a_) + (b_.)*(x_)^(n_)), x_Symbol] :> Simp[Log[RemoveContent[a + b*x^n, x]]/(b*n), x] /; FreeQ
[{a, b, m, n}, x] && EqQ[m, n - 1]

Rubi steps

\begin {align*} \int \frac {x^{-1+n}}{a+b x^n} \, dx &=\frac {\log \left (a+b x^n\right )}{b n}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.00, size = 15, normalized size = 1.00 \[ \frac {\log \left (a+b x^n\right )}{b n} \]

Antiderivative was successfully verified.

[In]

Integrate[x^(-1 + n)/(a + b*x^n),x]

[Out]

Log[a + b*x^n]/(b*n)

________________________________________________________________________________________

fricas [A]  time = 0.71, size = 15, normalized size = 1.00 \[ \frac {\log \left (b x^{n} + a\right )}{b n} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^(-1+n)/(a+b*x^n),x, algorithm="fricas")

[Out]

log(b*x^n + a)/(b*n)

________________________________________________________________________________________

giac [A]  time = 0.15, size = 16, normalized size = 1.07 \[ \frac {\log \left ({\left | b x^{n} + a \right |}\right )}{b n} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^(-1+n)/(a+b*x^n),x, algorithm="giac")

[Out]

log(abs(b*x^n + a))/(b*n)

________________________________________________________________________________________

maple [A]  time = 0.02, size = 18, normalized size = 1.20 \[ \frac {\ln \left (b \,{\mathrm e}^{n \ln \relax (x )}+a \right )}{b n} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x^(n-1)/(b*x^n+a),x)

[Out]

1/b/n*ln(b*exp(n*ln(x))+a)

________________________________________________________________________________________

maxima [A]  time = 0.64, size = 15, normalized size = 1.00 \[ \frac {\log \left (b x^{n} + a\right )}{b n} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^(-1+n)/(a+b*x^n),x, algorithm="maxima")

[Out]

log(b*x^n + a)/(b*n)

________________________________________________________________________________________

mupad [B]  time = 1.22, size = 15, normalized size = 1.00 \[ \frac {\ln \left (a+b\,x^n\right )}{b\,n} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x^(n - 1)/(a + b*x^n),x)

[Out]

log(a + b*x^n)/(b*n)

________________________________________________________________________________________

sympy [A]  time = 2.54, size = 27, normalized size = 1.80 \[ \begin {cases} \frac {\log {\relax (x )}}{a} & \text {for}\: b = 0 \wedge n = 0 \\\frac {\log {\relax (x )}}{a + b} & \text {for}\: n = 0 \\\frac {x^{n}}{a n} & \text {for}\: b = 0 \\\frac {\log {\left (\frac {a}{b} + x^{n} \right )}}{b n} & \text {otherwise} \end {cases} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x**(-1+n)/(a+b*x**n),x)

[Out]

Piecewise((log(x)/a, Eq(b, 0) & Eq(n, 0)), (log(x)/(a + b), Eq(n, 0)), (x**n/(a*n), Eq(b, 0)), (log(a/b + x**n
)/(b*n), True))

________________________________________________________________________________________